package com.basic.bio.easy;

import java.io.*;
import java.net.Socket;

/**
 * @Description:
 * @Date: 2024-03-28 11:07
 * @Author: wz
 **/
public class Client {

    public static void main(String[] args){
        try {
            Socket socket = new Socket("127.0.0.1", 9090);
            OutputStream os = socket.getOutputStream();
//            os.write("hello，我是哥".getBytes());

            PrintStream ps = new PrintStream(os);
            ps.println("你好呀");
            ps.flush();
//            os.close();
//            socket.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
